//
//  UIButton+YWPhotoBrowserBtn.m
//  Chinese
//
//  Created by yellow on 2021/3/8.
//  Copyright © 2021 YSLC. All rights reserved.
//

#import "UIButton+YWPhotoBrowserBtn.h"

@implementation UIButton (YWPhotoBrowserBtn)
+(instancetype)buttonWithBgColor:(UIColor*)bgColor fontSize:(CGFloat)fontSize title:(NSString *)title{
    
    UIButton *button = [[UIButton alloc] init];
    button.backgroundColor = bgColor;
    button.titleLabel.font = [UIFont systemFontOfSize:fontSize];
    [button setTitle:title forState:UIControlStateNormal];
    
    [button setTitleColor:otherMainColor forState:UIControlStateNormal];
    button.layer.cornerRadius = 5;
    
    return button;
}
@end
